import request from '@/utils/request'
import qs from 'qs'

export function list(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/scenic_item/index',
    method: 'get',
    params: data
  })
}

export function deleteAll(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/scenic_item/del',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function scenicSort(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/scenic_item/sorts',
    method: 'post',
    data: qs.stringify(data)
  })
}

export function submit(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/scenic_item/edit',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function add(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/scenic_item/add',
    method: 'post',
    data: qs.stringify(data)
  })
}
